using UnityEngine;
using System.Collections;

public class playerInput
{
	private bool m_bomb = false;
	public bool acc_bomb
	{
		get { return this.m_bomb; }
	}

	private bool m_shoot = false;
	public bool acc_shoot 
	{
		get { return this.m_shoot; }
	}

	private bool m_jump = false;
	public bool acc_jump 
	{
		get { return this.m_jump; }
	}

	private bool m_left = false;
	public bool acc_left {
		get { return this.m_left; }
	}

	private bool m_right = false;
	public bool acc_right {
		get { return this.m_right; }
	}


	// Update is called once per frame
	public void Update ()
	{
		//shoot
		if (Input.GetAxis("MaLAZA") < 0) {
			m_shoot = true;
		} else {
			m_shoot = false;
		}
		
		//saut
		if (Input.GetAxis("Jump") > 0) {
			m_jump = true;
		} else {
			m_jump = false;
		}

		if (Input.GetAxis("BOMB") > 0)
		{
			m_bomb = true;
		}
		else
		{
			m_bomb = false;
		}
		
		if (Input.GetAxis ("Horizontal") < 0) {
			m_left = true;
		} else {
			m_left = false;
		}
		
		if (Input.GetAxis ("Horizontal") > 0) {
			m_right = true;
		} else {
			m_right = false;
		}
	}
}
